package com.chenyanqing.sqlsession;

import sun.tools.java.ClassType;

import java.util.List;

public interface SqlSession {


    //查询所有
     public  <T> List<T> selectList(String statementId,Object ...objects) throws Exception;


     //根据条件查询  可变参
     public  <T> T selectOne(String statementId,Object ...objects) throws Exception;



     public Integer update(String statementId,Object ...objects) throws Exception;



     public Integer delete(String statementId,Object ...objects) throws Exception;


      public Integer insert(String statementId, Object... objects) throws Exception;


     public <T> T  getMapper(Class<?> maaperClass);


}
